package worldmap;

/**
 * This object represents a column in the minecraft world.
 * A contains 16 x (16x16) x 16 blocks.
 * 
 * An entire column is loaded into memory at once.
 *
 */
public class MapColumn {
	
	/**
	 * A column is divided in 16 blocks of 16*16 bytes.
	 */                                   //[ Y][ X* Z]
	private MapColumnChunk[] columnBlocks = new MapColumnChunk[16];
	
	//TODO byte[] biome_addarray= new byte[16*16];

	
	public MapColumn() {	
		columnBlocks[0] = new MapColumnChunk();		
		columnBlocks[1] = new MapColumnChunk();
	}
	
	
	public boolean isAir(byte y) {
		return columnBlocks[y] == null;
	}
	
	public MapColumnChunk getChunk(byte y) {
		return columnBlocks[y];
	}
	

	
}
